package com.zxl.common.model.bo.meber;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zxw
 * @date 2023/4/3
 */
@Data
public class UpdateAddrBo {
    @ApiModelProperty("修改时给地址id")
    private Integer id;

    @ApiModelProperty(value = "收货人")
    private String receiverName;

    @ApiModelProperty(value = "收货人手机号")
    @NotBlank(message = "联系人电话不能为空")
    @Length(min = 11, max = 11, message = "手机号只能为11位")
    private String receiverTel;

    @ApiModelProperty(value = "详细地址")
    private String receiverDetail;

    @ApiModelProperty(value = "是否默认地址")
    @NotNull
    private Boolean defaultStatus;
}
